# 从列表中创造字典,键为元素的索引,值为元素的值
my_list = ['apple','banana','orange']
my_dict = {index:value for index,value in enumerate(my_list) if index != 0}
print(my_dict)

# 将字典中的值转为大写
my_dict = {key:value.upper() for key,value in my_dict.items()}
print(my_dict)